﻿<div id="viewport-inset" style="position:relative;height:400px;width:400px;background: var(--neutral-layer-4);overflow:auto;resize:both;">
    <FluentButton Appearance=Appearance.Neutral id="anchor-inset" style="margin-left:100px;margin-top:100px">anchor</FluentButton>
    <FluentAnchoredRegion Anchor="anchor-inset" Viewport="viewport-inset"
                          VerticalPositioningMode="AxisPositioningMode.Dynamic"
                          VerticalInset="true"
                          HorizontalPositioningMode="AxisPositioningMode.Dynamic"
                          HorizontalInset="true">
        <div style="height:100px;width:100px;background:var(--highlight-bg);;opacity:.5" />
    </FluentAnchoredRegion>
</div>
